@extends('layouts.master')

@section('title')
    管理员模块——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
    <link rel="stylesheet" href="/resource/css/dataTables.bootstrap.css">
@stop

@section('app_js')
    <script src="/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/jquery.twbsPagination.js"></script>
    <script src="/resource/js/date.js"></script>
@stop


@section('content')
    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.admin_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>其他 > 管理员
            </div>
            <div class="contentNav">
              <ul>
                <li>管理员</li>
                <li class="btn btn-default active"><a href="conservator.html">列表</a></li>
                <li class="btn btn-default"><a href="/add_admin">新增</a></li>
              </ul>
            </div>
            <div class="contentMember">
              <hr>
              <form class="bs-docs-example">
                姓名
                <input type="text" class="input-small">
                联系方式
                <input type="text" class="input-small">
                
                <button class="btn dropdown-toggle">
                  搜索
                </button>
              </form>
              <hr>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th>管理员</th>
                    <th>姓名</th>
                    <th>头像</th>
                    <th>角色</th>
                    <th>联系方式</th>
                    <th>状态</th>
                    <th>上次登录时间</th>
                    <th>上次登录IP</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                  @foreach($admins as $k => $admin)
                  <tr>
                    <td>{{ $admin->name }}</td>
                    <td>{{ $admin->real_name }}</td>
                    <td>{{ $admin->avatar }}</td>
                    <td>{{ $admin->role_id }}</td>
                    <td>{{ $admin->mobile }}</td>
                    <td>{{ $admin->status }}</td>
                    <td>{{ $admin->last_login_time }}</td>
                    <td>{{ $admin->last_login_ip }}</td>
                    <td><a href="/edit_admin?id={{ $admin->id }}">编辑</a> | <a href="/admin/del_admin?id={{ $admin->id }}">删除</a></td>
                  </tr>
                      @endforeach
                </tbody>
              </table>
            </div>
            {{ $admins->links() }}
        </div>
    </div>
</div>
@stop